<?php
return [
    'components' => [
        'db' => [
            'class' => "yii\db\Connection",
            'dsn' => "mysql:host=127.0.0.1;port=3306;dbname=_inityii",
            'username' => "",
            'password' => "",
            'charset' => "utf8mb4",
            /*'slaveConfig' => [
                'username' => '',
                'password' => '',
                'charset' => 'utf8mb4',
            ],
            'slaves' => [
                ['dsn' => 'mysql:host=127.0.0.1;port=3306;dbname=test_inityii'],
            ],*/
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => false,    //这里一定要改成false，不然邮件不会发送
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.2980.com',
                'username' => 'wodrow@2980.com',
                'password' => '',
            ],
            'messageConfig'=>[
                'charset'=>'UTF-8',
                'from'=>['wodrow@2980.com'=>'wodrow@2980']
            ],
        ],
        'apiTool' => [
            'class' => \common\components\ApiTool::class,
            'baseUri' => YII_BASE_URL,
            'apiUri' => "/api",
            'isEmailCodeSend' => false,
        ],
        'uniApp' => [
            'class' => \common\components\UniApp::class,
        ],
        'wYiiBackup' => [
            'class' => \common\wodrow\wyiibackup\WYiiBackup::class,
            'configJobs' => [],
            'dbJobs' => [],
            'fileJobs' => [],
        ],
    ],
    'aliases' => [
        '@bower' => "@vendor/bower",
        '@npm'   => "@vendor/npm",
//        '@npm'   => "@vendor/npm-asset",
    ],
    'params' => [
        'adminEmail' => "1173957281@qq.com",
        'adminMobile' => "17091551612",
        'adminQQ' => "1173957281",
        'adminWX' => "wodrow",
        'quenYiiTaskCacheKey' => "quenYiiTaskCacheKey",
        'yiichina-username' => "wodrow",
        'yiichina-password' => "",
        'apiAdminUserIds' => [1],
        'console-username' => "wodrow",
        'console-password' => "",
    ],
];
